import React from 'react'
import { useLocation } from 'react-router-dom'

export default function Two() {
    const {state} = useLocation()
    if(!state){
        return null;
    }
  return (
    <div>
        <h3>TWO</h3>
        <p>a:{state.a}</p>
        <p>b:{state.b}</p>
        <p>c:{state.c.username}</p>
    </div>
  )
}
